package vip.xiaonuo.supplier.modular.warehouse.storeslocation.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import vip.xiaonuo.common.pojo.CommonEntity;
import vip.xiaonuo.supplier.modular.base.stores.entity.SupplierStores;
import vip.xiaonuo.supplier.modular.warehouse.storages.entity.SupplierStorages;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 库位信息实体
 *
 * @author Mr.wu
 * @date  2025/03/15 21:29
 **/
@Getter
@Setter
@TableName("SUPPLIER_STORES_LOCATION")
public class SupplierStoresLocation extends CommonEntity {

    /** 库位ID */
    @TableId
    @Schema(description = "库位ID")
    private String id;

    /** 库位编号 */
    @Schema(description = "库位编号")
    private String locationCode;

    /** 库位名称 */
    @Schema(description = "库位名称")
    private String locationName;

    /** 所属门店 */
    @Schema(description = "所属门店")
    @Trans(type = TransType.SIMPLE, target = SupplierStores.class, fields = "storeName", alias = "stores", ref = "locationStoreName")
    private String locationStore;

     /**所属门店名称 */
    @Schema(description = "所属门店名称")
    @TableField(exist = false)
    private String locationStoreName;

    /** 所属仓库 */
    @Schema(description = "所属仓库")
    @Trans(type = TransType.SIMPLE, target = SupplierStorages.class, fields = "storeName", alias = "storages", ref = "locationStorageName")
    private String locationStorage;

     /**所属仓库名称 */
    @Schema(description = "所属仓库名称")
    @TableField(exist = false)
    private String locationStorageName;

    /** 排序码 */
    @Schema(description = "排序码")
    private Integer sortCode;

    /** 扩展信息 */
    @Schema(description = "扩展信息")
    private String extJson;

    /** 数据归属 */
    @Schema(description = "数据归属")
    private String companyId;
}
